package extStyle
{
	 import flash.geom.Point;
    import flash.geom.Rectangle;
    
    import mx.graphics.BitmapFill;
    import mx.skins.ProgrammaticSkin;
            
    public class RepeatBG extends ProgrammaticSkin {  

              
            private var embedclass:Class;  
            public function RepeatBG() 
            {  
            }  
                    
            override protected function updateDisplayList(w:Number, h:Number):void {  
                    super.updateDisplayList(w,h);  
                    graphics.clear();
                    var b:BitmapFill = new BitmapFill();
                    b.repeat = true;
                    b.source = embedclass;  
                    b.begin(graphics,new Rectangle(0,0,200,120));  
                    graphics.drawRect(0,0,w,h);  
                    b.end(graphics);  
            }  
                    
    }  
}